import { Directive, ElementRef } from '@angular/core';

@Directive({
  selector: '[appFocus]'
})
export class FocusDirective {

  constructor(e: ElementRef) {
    let input = e.nativeElement;
    input.focus();
  }

}
